package cn.neusoft.dao;

import java.sql.SQLException;
import java.util.List;

/**
 * 增删改查
 * @param <T>
 */
public interface IBaseDao<T> {
    public int add(T t) throws SQLException;
    public int update(T t) throws SQLException;
    public int delete(Integer id) throws SQLException;
    public T getById(Integer id) throws SQLException;
    public List<T> getAll() throws SQLException;

}
